package com.example.downloaddemo.downloader;

import java.util.Observable;

public class DataChanger extends Observable {

    private static DataChanger mInstance;

    public static synchronized DataChanger getInstance() {
        if (mInstance == null) {
            mInstance = new DataChanger();
        }
        return mInstance;
    }

    public void postStatus(DownloadEntry downloadEntry){
        setChanged();
        notifyObservers(downloadEntry);
    }
}
